package com.skirmisher.video.mapper;


import com.skirmisher.video.entity.video.*;

import java.util.List;

/**
 * @Author hanwangxin
 * @Description //TODO
 * @Param
 * @return
 **/

public interface AliVideoMapper {

    void saveGroup(List<GroupEntity> groupList);

    void saveDevice(List<DeviceEntity> deviceList);

    void saveStream(List<StreamEntity> streamList);

    void deletGroup();

    void deletDevice();

    void deletStream();

    StreamEntity getDeviceUrl(StreamEntity deviceId);

    List<DeviceEntity> getDeviceList(DevicePageQueryEntity pageQuery);

    int getDeviceCount(DevicePageQueryEntity pageQuery);

    void updateStream(StreamEntity stream);

    StreamEntity getStream(String deviceId);

    void saveRecord(RecordEntity record);

    StreamEntity getStream4Name(String stream);

    List<RecordEntity> getRecordList(RecordPageQueryEntity page);

    int getRecordCount(RecordPageQueryEntity page);

    void device2Project(Device2ProjectEntity device2Project);

    RecordEntity getVideoById(String videId);

    void saveProjectVideo(ProjectVideoEntity proVideo);

    int getDevice4Project(Device2ProjectEntity device2Project);

    void updateDevice2Project(Device2ProjectEntity device2Project);
}
